package com.idas.wsdl;

import java.lang.reflect.Method;

import com.sun.xml.internal.ws.api.wsdl.writer.WSDLGeneratorExtension;
import com.sun.xml.internal.txw2.TypedXmlWriter;
import com.sun.xml.internal.ws.api.model.JavaMethod;

@SuppressWarnings("restriction")
public class WSDLOverwrite extends WSDLGeneratorExtension {

	public void addOperationExtension(TypedXmlWriter operation,
			JavaMethod method) {
		Method m = method.getMethod();
		WSDLComment comm = m.getAnnotation(WSDLComment.class);
		if (comm != null) {
			String s = comm.comment();
			operation._comment(s);
		}
	}

}
